#!/bin/sh
#if [ ! -e /usr/local/bin ]; then
#  mkdir -p /usr/local/bin
#fi
apt-get install python-libxml2
apt-get install curl
#cp monitor.py /usr/sbin/ivic-monitor
#chmod +x /usr/sbin/ivic-monitor
#if [ ! -f /etc/vmc.yaml ]; then
#  cp vmc.yaml /etc/
#fi
#sed -i 's/^\(.*cvc-monitor.*\)$/#\1/' /etc/crontab
#chmod +x /usr/local/bin/monitor.py
crontab -l | sed '/^.*ivic-monitor$/ d' | cat - /etc/cron.d/ivic-monitor > monitor.cron.inst
crontab monitor.cron.inst
